package work724.work1;

/**
 * 除
 */
public class Div implements ICalculator {
  @Override
  public int calculate(int n, int m) {
    if (m == 0){
      System.out.println("分母不能为0");
      return 0;
    }else {
      return n / m ;
    }
  }
}
